package ext.generic.doc.processors;

import com.ptc.core.components.forms.DefaultObjectFormProcessor;
import com.ptc.core.components.forms.FormResult;
import com.ptc.netmarkets.util.beans.NmCommandBean;
import com.ptc.windchill.enterprise.util.PartManagementHelper;
import java.util.List;
import wt.util.WTException;
import ext.generic.part.GenericPartManagementHelper;
/**
 * 从普通类文档中移除相关的零部件的方法类,响应"文档中移除相关的零部件"的action
 */
public class GenericDocPartDescDeleteRelationFormProcessor extends DefaultObjectFormProcessor
{

    public GenericDocPartDescDeleteRelationFormProcessor()
    {
    }
    /**
     *从普通类文档中移除相关的零部件的具体的方法
     * @param nmcommandbean
     * @param list
     * @return
     * @throws WTException
     */
    public FormResult doOperation(NmCommandBean nmcommandbean, List list)
        throws WTException
    {
        FormResult formresult = GenericPartManagementHelper.deleteRelationDocPart(nmcommandbean, false);
        super.doOperation(nmcommandbean, list);
        return formresult;
    }
}
